package com.foreknow.demo9;

public class Y extends X {

    @java.lang.Override
    public void m1() {
        System.out.println("new......");
    }

    public static void main(String[] args) {
        Y y = new Y();
        y.m1();

        X x = new X();
        x.m1();
    }
}
